package org.colcon.web.client.ui.panel;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.client.ui.ItemPanel;
import org.colcon.web.client.ui.LinkPanel;
import org.colcon.web.model.Model;
import org.colcon.web.model.framework.IUser;

public class UserPanel extends ItemPanel 
{
	public UserPanel(Collective_Congress client, IUser user) 
	{
		super(client, user);
		
		for(String title : user.getTitles())
			add(new LinkPanel(client, "link", Model.getTitleString(title), title));
	}

	public IUser getUser()
	{
		return (IUser) getItem();
	}
}
